package com.mm.dss.demo;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.mm.dss.demo.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class SJCXZLActivity extends BaseActivity {

    @BindView(R.id.layout_back)
    RelativeLayout layoutBack;
    @BindView(R.id.txt_title)
    TextView txtTitle;
    @BindView(R.id.txt_right)
    TextView txtRight;
    @BindView(R.id.right)
    TextView right;
    @BindView(R.id.toolbar)
    Toolbar toolbar;
    @BindView(R.id.GNSS)
    TextView GNSS;
    @BindView(R.id.YLJ)
    TextView YLJ;
    @BindView(R.id.NSL)
    TextView NSL;
    @BindView(R.id.LHJ)
    TextView LHJ;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_s_j_c_x_z_l);
        ButterKnife.bind(this);
        txtTitle.setText("监测数据");
        layoutBack.setVisibility(View.VISIBLE);
    }

    @OnClick({R.id.layout_back, R.id.GNSS, R.id.YLJ, R.id.NSL, R.id.LHJ})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.layout_back:
                finish();
                break;
            case R.id.GNSS: //GNSS
                startActivity(new Intent(this, SjcxActivity.class).putExtra("type","1"));
                break;
            case R.id.YLJ: //雨量计
                startActivity(new Intent(this, SjcxActivity.class).putExtra("type","2"));
                break;
            case R.id.NSL: //泥石流
                startActivity(new Intent(this, SjcxActivity.class).putExtra("type","3"));
                break;
            case R.id.LHJ://裂缝计
                startActivity(new Intent(this, SjcxActivity.class).putExtra("type","4"));
                break;
        }
    }
}
